Blitz (113/640)

From:Roger Light
Date:3 Sep 99 at 11:40:59
Subject:Re: string -> float

On 30-Aug-99, David McMinn wrote:

>> I'm trying to convert a string of the form 1e23 into a float so that I
>> can perform maths on it. Only problem is - Val() doesn't support the "e".
>> Anybody know of a way in which I can do this?
>
> If you assume that the string is only going to contain
> <mantissa>e<exponent>, then you could try this:

Cheers David and James, spot on methods ;) Now why didn't I think of that
myself?

I shall probably write to the list soon with another related problem if I can't
twist my mind around it soon :(

Cheers,

Roger



IRC: oojah @ Arcnet | ICQ: 9727627
-------------------
UK University Email Search - Find undergraduate email addresses!
http://start.at/uksearch

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie